package com.qs.mapper;

import com.qs.pojo.entity.PayInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qs.pojo.vo.PayInfoVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 订单支付记录表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-12-08
 */
@Mapper
public interface PayInfoMapper extends BaseMapper<PayInfo> {

    List<PayInfoVo> findWeekdayData();

    /**
     * 查询出本周总流水
     */
    float findWeekTotal();

    /**
     * 查询出今年总流水
     * @return
     */
    float findThisYearData();

    /**
     * 获取商铺对应的总流水
     * @param orderIds
     * @return
     */
    Float findTotalPrice(List<String> orderIds);

    /**
     * 获取商铺对应的流水（昨天）
     * @param orderIdsYesterday
     * @return
     */
    Float findTotalPriceYesterday(List<String> orderIdsYesterday);
}
